import { createSlice, PayloadAction } from '@reduxjs/toolkit';
// import { AccountInfo } from 'src/model/Account';

type BaseData = {
    FDbskxe: string,
    FEmail: string,
    FID: number | string,
    FScckj: string,
    FSxf: string,
    FTelegram: string,
    FTopMsg: string,
    FXtxe: string,
    FXtxe1: string,
    FZdskje: string,
    FiOSUrl: string,
    FAndroidUrl: string,

}

export type BasedataState = {
    baseDataInfo?: BaseData;
};

const initialState: BasedataState = {
    baseDataInfo: undefined,
};

export const basedataSlice = createSlice({
    name: 'basedata',
    initialState,
    reducers: {
        setBaseData: (state: BasedataState, action: PayloadAction<BaseData>) => {
            state.baseDataInfo = action.payload;
        },
    },
});

export const { setBaseData } = basedataSlice.actions;

export default basedataSlice.reducer;
